#1.需求：有三个办公室，8位老老师，8位老师随机分配到3个办公室
import random
office1=[]
office2=[]
office3=[]
Teachers=['Tom','Lily','zhaoym','liji','Rose','TT','QQ','WW']

for Teacher in Teachers:
    n=random.randint(0,2)
    if n==0:
        office1.append(Teacher)
    elif n==1:
        office2.append(Teacher)
    elif n==2:
        office3.append(Teacher)
    else:
        print("输入异常！")
print(office1)
print(office2)
print(office3)